#!/usr/bin/env python
# -*- coding:utf-8 -*-

from .apiVersionResource import apiversion_blueprint
from .teacherResource import teacher_blueprint
from .sysDepartmentinfoResource import sysdepartmentinfo_blueprint
from .ssoUserResource import ssouser_blueprint
from .studentResource import student_blueprint
from .sysClassinfoResource import sysclassinfo_blueprint
from .courseResource import course_blueprint
from .adminResource import admin_blueprint
from .userTokenResource import usertoken_blueprint
from .sysCollegeinfoResource import syscollegeinfo_blueprint


def init_router(app):
    from api_1_0.apiVersionResource import apiversion_blueprint
    app.register_blueprint(apiversion_blueprint, url_prefix="/api_1_0")

    # teacher blueprint register
    from api_1_0.teacherResource import teacher_blueprint
    app.register_blueprint(teacher_blueprint, url_prefix="/api_1_0")
    
    # sysDepartmentinfo blueprint register
    from api_1_0.sysDepartmentinfoResource import sysdepartmentinfo_blueprint
    app.register_blueprint(sysdepartmentinfo_blueprint, url_prefix="/api_1_0")
    
    # ssoUser blueprint register
    from api_1_0.ssoUserResource import ssouser_blueprint
    app.register_blueprint(ssouser_blueprint, url_prefix="/api_1_0")
    
    # student blueprint register
    from api_1_0.studentResource import student_blueprint
    app.register_blueprint(student_blueprint, url_prefix="/api_1_0")
    
    # sysClassinfo blueprint register
    from api_1_0.sysClassinfoResource import sysclassinfo_blueprint
    app.register_blueprint(sysclassinfo_blueprint, url_prefix="/api_1_0")
    
    # course blueprint register
    from api_1_0.courseResource import course_blueprint
    app.register_blueprint(course_blueprint, url_prefix="/api_1_0")
    
    # admin blueprint register
    from api_1_0.adminResource import admin_blueprint
    app.register_blueprint(admin_blueprint, url_prefix="/api_1_0")
    
    # userToken blueprint register
    from api_1_0.userTokenResource import usertoken_blueprint
    app.register_blueprint(usertoken_blueprint, url_prefix="/api_1_0")
    
    # sysCollegeinfo blueprint register
    from api_1_0.sysCollegeinfoResource import syscollegeinfo_blueprint
    app.register_blueprint(syscollegeinfo_blueprint, url_prefix="/api_1_0")
    
